<% if flash[:message] -%>
  <%= render "trestle/flash/alert", html_class: "alert-success",
                                    icon: icon("alert-icon far fa-check-circle"),
                                    alert: normalize_flash_alert(flash[:message]) %>
<% elsif flash[:error] -%>
  <%= render "trestle/flash/alert", html_class: "alert-danger",
                                    icon: icon("alert-icon far fa-times-circle"),
                                    alert: normalize_flash_alert(flash[:error]),
                                    errors: (Trestle::DebugErrors.new(instance.errors) if debug_form_errors?) %>
<% end -%>
